package com.xiaoxin.yixinai.role;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.xiaoxin.yixinai._frame.base.BaseModel;

/**
 * 功能：角色信息表
 * 版本: 1.0
 * 开发人员：贾永强
 * 创建日期: 下午3:59:35 
 * 修改日期：下午3:59:35 
 * 修改列表：
 */
@Entity
@Table(name="tb_role_info")
public class RoleInfo extends BaseModel {

	/**
	 * 通用角色
	 */
	public final static String COMMON_ROLE = "common_role";

	/**
	 * 政府管理员
	 */
	public final static String MANAGE_ADMIN = "manageadmin";

	@Column(name="is_fork_group")
	public Integer isForkGroup;

	// Fields
	@Id
	@Column(name = "role_id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer roleId;

	@Column(name="role_name",length=50)
	private String roleName; //角色名称

	@Column(name="Memo",length=100)
	private String memo;//备注

	@Column(name="order_index")
	private Integer orderIndex;

	/**
	 * 是否删除 1：已经删除0未删除
	 */
	@Column(name="is_delete")
	private Integer isDelete;

	/**
	 * 0,系统默认不可删除1,非系统默认
 	 */
	@Column(name="role_type")
	private Integer roleType ;

	/**
	 * 角色编码 seat:座席 seatleader：座席班长
 	 */
	@Column(name="role_code",length=50)
	private String roleCode;

	@Transient
	private String extension;
	/**
	 * 公司ID
	 */
	@Column(name="company_id")
	private Integer companyId;
	public Integer getIsForkGroup() {
		return isForkGroup;
	}
	public void setIsForkGroup(Integer isForkGroup) {
		this.isForkGroup = isForkGroup;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Integer getOrderIndex() {
		return orderIndex;
	}
	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	public Integer getRoleType() {
		return roleType;
	}
	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}
	public String getRoleCode() {
		return roleCode;
	}
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	public String getExtension() {
		return extension;
	}
	public void setExtension(String extension) {
		this.extension = extension;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public static String getCommonRole() {
		return COMMON_ROLE;
	}
	public static String getManageAdmin() {
		return MANAGE_ADMIN;
	}

}